var express = require('express');
var router = express.Router();
var salarysService = require('../service/salarysService.js')

router.get('/query', async function (req, res, next) {
    let { type } = req.query
    let result = await salarysService.query({ type });
    res.json({
        code: 200,
        data: result
    })
});


module.exports = router;
